<?php
namespace app\index\controller;

use think\Controller;
use app\index\model\Book;
use app\index\model\Shoplist;

class Shopdetail extends Controller
{
    public function shopdetail()
    {
        $bookID = input('get.bookID');
        // $num = input('post.shopNum');
        // $this->assign('num',$num);
        $book=Book::get($bookID);
        $this->assign('book',$book);
        $shoplists=Shoplist::where("bookID='".$bookID."'")->where("pjcontent is not null")->select();

        $this->assign('shoplists',$shoplists);
        return $this->fetch('shopdetail');
    }
    
}

